﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local="clr-namespace:StoryMaker.Common;assembly=StoryMaker.Common">
    <DataTemplate DataType="local:ShapeViewTemplates" >
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="50" />
                <ColumnDefinition Width="1*" />
                <ColumnDefinition Width="50" />
            </Grid.ColumnDefinitions>
            <ContentControl Grid.Column="1" Content="{Binding Mode=OneWay}" />
            <StackPanel Orientation="Vertical" >
                <ToggleButton IsChecked="{Binding DefaultFillShapes}" >
                    <ContentControl Content="{Binding FilledShape}" />
                </ToggleButton>
                <ToggleButton IsChecked="{Binding DefaultFillShapes, Converter={StaticResource ResourceKey=OppositeBoolConverter}}" >
                    <ContentControl Content="{Binding UnfilledShape}" />
                </ToggleButton>
            </StackPanel>
        </Grid>
    </DataTemplate>
</ResourceDictionary>